function fonte(cor,campo){
    if(campo == 1){
        document.formcolor.fonte.value = cor;
        if(cor == "#FFFFFF" && document.formcolor.bg.value == cor ){
            document.body.style.color = cor;
            document.body.style.backgroundColor = "#000000";
            document.formcolor.bg.value = "#000000";
        }
        else if(cor == "#000000" && document.formcolor.bg.value == cor ){
            document.body.style.color = cor;
            document.body.style.backgroundColor = "#FFFFFF";
            document.formcolor.bg.value = "#FFFFFF";
        }
        else
            document.body.style.color = cor;
    }
    else{
        document.formcolor.bg.value = cor;
        if(cor == "#FFFFFF" && document.formcolor.fonte.value == cor ){
            document.body.style.backgroundColor = cor;
            document.body.style.color = "#000000";
            document.formcolor.fonte.value = "#000000";
        }
        else if(cor == "#000000" && document.formcolor.fonte.value == cor ){
            document.body.style.backgroundColor = cor;
            document.body.style.color = "#FFFFFF";
            document.formcolor.fonte.value = "#FFFFFF";
        }
        else
            document.body.style.backgroundColor = cor;

    }

}